package com.xja.book.controller;

import com.xja.book.entity.BookInfo;
import com.xja.book.service.BookInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping(value = "book")
public class BookController {
    @Autowired
    private BookInfoService bookInfoService;
    public List<BookInfo> selectAllBook(){
        List<BookInfo> bookInfoList = bookInfoService.findAllBook();
        return bookInfoList;
    }
}
